package main

import (
	"Head-first-go/chapter12/example4/prose"
	"fmt"
)

func main() {
	// fmt.Println(strings.Join([]string{"aa", "bb", "cc", "dd"}, "/"))
	// fmt.Println(strings.Join([]string{"aa", "bb", "cc", "dd"}, "-"))

	phrass := []string{"my parents"}
	fmt.Println("a photo of", prose.JoinWithCommas(phrass))

	phrass = []string{"my parents", "a rodeo clown"}
	fmt.Println("a photo of", prose.JoinWithCommas(phrass))

	phrass = []string{"my parents", "a rodeo clown", "a prize bull"}
	fmt.Println("a photo of", prose.JoinWithCommas(phrass))

	// list := []string{"apple", "orange"}
	// println(prose.JoinWithCommas(list))

	// list = []string{"apple", "orange", "pear"}
	// println(prose.JoinWithCommas(list))

}
